//
//  RBCategoryGoodsHeaderView.m
//  zhongzhenglu
//
//  Created by XL on 2022/7/13.
//

#import "RBCategoryGoodsHeaderView.h"
#import <Masonry.h>
#import "RBDefine.h"
#import "UIView+RBAdd.h"
#import "RBThemeConfig.h"

@implementation RBCategoryGoodsHeaderView

+ (RBCategoryGoodsHeaderView *)viewWithTitle:(NSString *)title block:(void (^)(void))block
{
    RBCategoryGoodsHeaderView *view = RBCategoryGoodsHeaderView.new;
    
    UILabel *titleL = UILabel.new;
    titleL.text = title;
    titleL.font = [UIFont systemFontOfSize:Zoom(16)];
    titleL.textColor = [RBThemeConfig textBlackColor];
    [view addSubview:titleL];
    [titleL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.centerY.mas_equalTo(0);
    }];
    
//    UIImageView *imgView = UIImageView.new;
//    imgView.image = [UIImage imageNamed:@"mine_arrow_right"];
//    [view addSubview:imgView];
//    [imgView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.right.centerY.mas_equalTo(0);
//        make.width.mas_equalTo(Zoom(4.5));
//        make.height.mas_equalTo(Zoom(8));
//    }];
    
    return view;
}

@end
